# @summary A short summary of the purpose of this class
#
# A description of what this class does
#
# @example
#   include clusters::c79
class clusters::c79lustre (
  $enable_update      = true,
){
  if $enable_update {
  lustre::pkgforce{"centos-release-7-9.2009.1.el7.centos.x86_64":
    source           =>  "http://mirror.ihep.ac.cn/yum/centos-local/7.9.2009/updates/x86_64/Packages/centos-release-7-9.2009.1.el7.centos.x86_64.rpm",
  }

  $kernelpkg = [
    "kernel-3.10.0-1160.80.1.el7.x86_64",
    "kernel-tools-3.10.0-1160.80.1.el7.x86_64",
    "kernel-devel-3.10.0-1160.80.1.el7.x86_64",
    "kernel-debug-devel-3.10.0-1160.80.1.el7.x86_64",
    "kernel-abi-whitelists-3.10.0-1160.80.1.el7.noarch",
    "kernel-headers-3.10.0-1160.80.1.el7.x86_64",
    "kernel-tools-libs-3.10.0-1160.80.1.el7.x86_64",
    "python-perf-3.10.0-1160.80.1.el7.x86_64",
    "kmod-lustre-client-2.12.9-1.el7.x86_64",
  ]
  package { $kernelpkg:
    ensure  => "installed",
    require => Yumrepo['site'],
  }
  #if $facts['kernelrelease']  == "3.10.0-1160.80.1.el7.x86_64" {
  #  $kmod_package = [
  #    #"kmod-lustre-client-2.12.9-1.el7.x86_64",
  #    "kmod-openafs-1.6.22.3-1.3.10.0_1160.80.1.el7.x86_64",
  #  ]
  #  package { $kmod_package:
  #    ensure  => "installed",
  #    require => Yumrepo['site'],
  #  }
  #}
  }
}
